﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace Signage01
{
    // this is the object in every channel, later we can subclass it, if necessary, for different formats, 
    // like swf, movie, rss, etc
    [Serializable]
    public class Resource
    {
        private LocalFile _localFile;

        public LocalFile LocalFile
        {
            get { return _localFile; }
            set { _localFile = value; }
        }

        
        private int _offset; // in seconds

        public int Offset
        {
            get { return _offset; }
            set { _offset = value; }
        }


        private int _duration; // in seconds
        public int Duration
        {
            get { return _duration; }
            set { _duration = value; }
        }

        public Resource(LocalFile localFile)            
        {
            this._localFile = localFile;
            Offset = 0;
            Duration = 0;
        }

   }
}
